﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using MetaContainer;
using MetaContainer.Autofac;
using Microsoft.Practices.EnterpriseLibrary.Data;
using Samples.MetaContainer.EnterpriseLibrary.Adapter;

namespace Samples.MetaContainer.EnterpriseLibrary.Autofac
{
   class Program
   {
      static void Main(string[] args)
      {
         IMetaContainer container = new AutofacMetaContainerAdapter();
         container.SetUpDAAB();

         Database localDb = container.GetInstance<Database>();
         Console.WriteLine(localDb.ConnectionString);
         Console.ReadLine();
      }
   }
}
